package com.liuzhongni.wahahanews.activity;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.TextView;

import com.liuzhongni.wahahanews.R;

/**
 * Created by dllo on 16/1/18.
 */
public class LoginActivity extends AppCompatActivity implements View.OnClickListener {
    private TextView textViewForgetPassword;
    private TextView textViewLogin;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.myself_login);
        textViewForgetPassword = (TextView) findViewById(R.id.myself_login_mima_forget_tv);
        textViewLogin = (TextView) findViewById(R.id.myself_login_denglu_tv);
        textViewForgetPassword.setOnClickListener(this);
        textViewLogin.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.myself_login_mima_forget_tv:
                Intent intent = new Intent(LoginActivity.this, RetrievePassword.class);
                startActivity(intent);
                break;
            case R.id.myself_login_denglu_tv:

                break;
        }
    }
}
